<?php
/**
 * appRain v 0.1.x
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */
 ?>
 <div id="login">
	<!-- login -->
	<div class="title">
		<h5>Sign In to Administrative Panel</h5>
		<div class="corner tl"></div>
		<div class="corner tr"></div>
	</div>
	<?php if($error!=""):?>
	<div class="messages">
		<div id="message-error" class="message message-error">
			<div class="image">
				<img src="<?php echo $this->baseUrl('/themeroot/admin/');?>resources/images/icons/error.png" alt="Error" height="32" />
			</div>
			<div class="text">
				<span><?php echo $error;?></span>
			</div>
			<div class="dismiss">
				<a href="#message-error"></a>
			</div>
		</div>
	</div>
	<?php endif;?>
	<div class="inner">
		<form action="<?php echo $this->baseurl('/admin/system');?>" method="post">
		<div class="form">
			<!-- fields -->
			<div class="fields">
				<div class="field">
					<div class="label">
						<label for="username">Username:</label>
					</div>
					<div class="input">
						<input type="text" id="username" name="data[Admin][admin_id]" size="40" value="<?php echo $remember_super_admin_name; ?>" class="focus" />
					</div>
				</div>
				<div class="field">
					<div class="label">
						<label for="password">Password:</label>
					</div>
					<div class="input">
						<input type="password" id="password" name="data[Admin][admin_password]" size="40" value="<?php echo $remember_super_admin_password; ?>" class="focus" />
					</div>
				</div>
				<div class="field">
					<div class="checkbox">
						<input type="checkbox" id="remember" name="data[Admin][remember_me]" />
						<label for="remember">Remember me</label>
					</div>
				</div>
				<div class="buttons">
                    <div class="floatleft">
                        <a href="<?php echo $this->baseurl('/admin/forgotlogin'); ?>">Forgot Login?</a>
						<a href="<?php echo $this->baseurl('/'); ?>" >View Website?</a>
                    </div>
					<input type="submit" value="Sign In" />
				</div>
			</div>
			<!-- end fields -->
		</div>
		</form>
	</div>
		<!-- end login -->
</div>
 <div class="auth-copy-right" style="text-align:center;margin-top:50px;color:#003973"><?php echo $this->__("appRain Content Management Framework. Copyright &copy; appRain");?></div>